package 集合到文件数据排序改进;

public class Student {
    private String name;
    private int chinesescore;
    private int mathscore;
    private int englishscore;

    public Student () {
        super();
    }
    public Student(String name, int chinesescore, int mathscore, int englishscore) {
        this.name = name;
        this.chinesescore = chinesescore;
        this.mathscore = mathscore;
        this.englishscore = englishscore;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChinesescore() {
        return chinesescore;
    }

    public void setChinesescore(int chinesescore) {
        this.chinesescore = chinesescore;
    }

    public int getMathscore() {
        return mathscore;
    }

    public void setMathscore(int mathscore) {
        this.mathscore = mathscore;
    }

    public int getEnglishscore() {
        return englishscore;
    }

    public void setEnglishscore(int englishscore) {
        this.englishscore = englishscore;
    }

    public int getSum() {
        return this.chinesescore + this.englishscore + this.mathscore;
    }
}

